import { HttpHeaders } from '@angular/common/http';
import { number } from 'echarts';

export const SECRETKER = '@paixgrmvek4972';

export let tokenHeaders = {
  headers: new HttpHeaders({
  })
};

export let facilityConstant = {
  isVisible : false
};

export interface FacilityData {
  dataId: number;
  temperature: string;
  humidity: string;
  facilityNumber: string;
  dataDate: string;
  dataState: number;
}

export interface FacilityDataByFNumber {
  dataId: number;
  temperature: string;
  humidity: string;
  facilityNumber: string;
  dataDate: string;
  dataState: number;
}

export interface Facility {
  facilityid: number;
  facilitynumber: string;
  uid: string;
  facilitydate: string;
  facilitystate: string;
  facilitydetails: string;
  facilityTempThreshold: string;
  facilityHumThreshold: string;
  isSendEmailTemp: boolean;
  isSendEmailHum: boolean;
}

export interface PieChart {
  value: number;
  name: string;
}

export interface SeriesEchart {
  name: string;
  type: string;
  data: number[];
}

export interface THLineChart {
  xAxisData: string[];
  seriesData: SeriesEchart[];
  legendData: string[];
}

export interface User {
  uid: number;
  uname: string;
  uphone: string;
  upassword: string;
  uemail: string;
  uregistrationdate: Date;
}

// private THLineChart!: {
//   xAxisData: ['2021-02-24 06:22:13', '2021-02-24 06:22:15', '2021-02-24 06:22:11', '2021-02-24 06:22:13', '2021-02-24 06:22:15'],
//   seriesData: [
//     {name: '10000000', type: 'line', data: [26.3, 27.9]},
//     {name: '10000001', type: 'line', data: [27.3, 26.5, 27.4]}
//   ]};

// private facilityData: FacilityData[] = [
//   {
//     dataId: 1,
//     temperature: '26.3',
//     humidity: '47.9',
//     facilityNumber: '10000000',
//     dataDate: '2021-2-24 10:40:23',
//     dataState: 0
//   },
//   {
//     dataId: 2,
//     temperature: '27.3',
//     humidity: '48.9',
//     facilityNumber: '10000000',
//     dataDate: '2021-2-24 10:40:25',
//     dataState: 0
//   },
//   {
//     dataId: 3,
//     temperature: '26.3',
//     humidity: '47.9',
//     facilityNumber: '10000001',
//     dataDate: '2021-2-24 10:40:24',
//     dataState: 0
//   },
//   {
//     dataId: 4,
//     temperature: '27.5',
//     humidity: '47.9',
//     facilityNumber: '10000001',
//     dataDate: '2021-2-24 10:40:26',
//     dataState: 0
//   },
// ];
